package deepbitview

/**
 * an instance of a worker for a current sample
 */
class WorkerInstance implements Comparable{

    static constraints = {
    }

    /**
     * relations
     */
    static belongsTo = [worker:Worker,sample:Sample]

    /**
     * the related worker
     */
    Worker worker

    /**
     * the related sample
     */
    Sample sample

    /**
     * is this worker instance at this time
     */
    boolean alive

    int compareTo(Object o) {
        return 0  //To change body of implemented methods use File | Settings | File Templates.
    }
}
